package com.dankegongyu.demo.http.http.interceptor;

import androidx.annotation.NonNull;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

/**
 * @author wpq
 * @version 1.0
 */
public class DeviceRegisterInterceptor implements Interceptor {

    @Override
    public Response intercept(@NonNull Chain chain) throws IOException {
        Request request = chain.request().newBuilder()
                .removeHeader("X-Device-ID")
                .build();
        return chain.proceed(request);
    }
}
